-- GENERATED SPELL FOR [Hungering Soul Fragment] --


function spell0_23401(pUnit, Event) --@Consuming Strikes,Self--
pUnit:FullCastSpellOnTarget(41248,pUnit)
pUnit:RegisterEvent('Sorts_23401', 554, 1)
end

function Sorts_23401(pUnit, Event)
local choix_sorts_23401 = math.random(0, 0)
if choix_sorts_23401 == 0 then
pUnit:RegisterEvent('spell0_23401', 1, 1)
end
end

function mob23401_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23401', math.random(1500, 3000), 1)
end

function mob23401_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23401_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23401_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23401, 1, 'mob23401_Action')
RegisterUnitEvent(23401, 2, 'mob23401_Leave')
RegisterUnitEvent(23401, 3, 'mob23401_Kill')
RegisterUnitEvent(23401, 4, 'mob23401_Die')
